<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
			
		window.onload= function () {
			baidu = document.getElementById('baidu');

			console.log(baidu.childNodes)

			baidu.childNodes[1].nextSibling.nextSibling.style.color="red"
		}

	</script>
</head>
<body>
	<p>
		<b id="baidu">
			<span>span</span>
			<span>span</span>
		</b>
		<i>学并思</i>
	</p>
</body>
</html>